package com.recruit.wechat.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author LF
 * @since 2020-08-25
 */
@TableName("wechat_industry")
@ApiModel(value="WechatIndustry对象", description="")
public class WechatIndustry extends Model<WechatIndustry> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "行业ID")
    @TableId(value = "industry_id", type = IdType.AUTO)
    private Integer industryId;

    @ApiModelProperty(value = "行业名字")
    @TableField("industry_name")
    private String industryName;

    @ApiModelProperty(value = "上级id")
    @TableField("parent_id")
    private Integer parentId;

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    @TableField(exist = false)
    private String pName;  //上级id  对应的名字

    public Integer getIndustryId() {
        return industryId;
    }

    public void setIndustryId(Integer industryId) {
        this.industryId = industryId;
    }
    public String getIndustryName() {
        return industryName;
    }

    public void setIndustryName(String industryName) {
        this.industryName = industryName;
    }
    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @Override
    protected Serializable pkVal() {
        return this.industryId;
    }

    @Override
    public String toString() {
        return "WechatIndustry{" +
            "industryId=" + industryId +
            ", industryName=" + industryName +
            ", parentId=" + parentId +
        "}";
    }
}
